// 导入instance[axios]请求文件
import instance from '@/utils/axios.js'

// 发送请求
function getChannel() {
    return instance({
        url: '/v1_0/user/channels',
        method: 'get',
    })
}

// 暴露文件
export { getChannel }

function getArtcles({ channel_id, timestamp, }) {
    return instance({
        url: '/v1_1/articles',
        method: 'get',
        params: {
            channel_id,
            timestamp,
            with_top:1
        }
    })
}

// 暴露文件
export { getArtcles }